package com.itheima.mapper;


import com.itheima.pojo.EmpLog;
import com.itheima.pojo.OperateLog;
import com.itheima.pojo.OperateLogRe;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
    public interface EmpLogMapper {
        //插入日志
        @Insert("insert into emp_log (operate_time, info) values (#{operateTime}, #{info})")
        public void insert(EmpLog empLog);
        @Select("select  e.name operate_emp_name,ol.* from operate_log ol left join emp e on ol.operate_emp_id = e.id ")
        List<OperateLogRe> selectLog(Integer page, Integer pageSize);
    }
